package com.xbongbong.paas.domain.entity.ext;

import com.alibaba.fastjson.JSONArray;
import com.xbongbong.paas.domain.entity.PaasProcessTemplateEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * @author: wufeng
 * @date: 2018/8/17 9:51
 * @desrcption: 流程模板表对象
 */
@ToString
@Getter
public class PaasProcessTemplateEntityExt extends PaasProcessTemplateEntity {

    private static final long serialVersionUID = -1196577896880387475L;

    private List<OptionalRangeEntity> rolesWithoutApproveList;

    private List<String> needApproveFieldList;

    public void setRolesWithoutApproveList(String rolesWithoutApproveList) {
        this.rolesWithoutApproveList = JSONArray.parseArray(rolesWithoutApproveList, OptionalRangeEntity.class);
    }

    public void setNeedApproveFieldList(String needApproveFieldList) {
        this.needApproveFieldList = JSONArray.parseArray(needApproveFieldList, String.class);
    }
}
